package com.product.shop.dao;

import com.product.shop.entity.OrderInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author brh
 * @email sunlightcs@gmail.com
 * @date 2022-02-22 16:30:11
 */
@Mapper
public interface OrderInfoDao extends BaseMapper<OrderInfoEntity> {
    @Select("select * from order_info where user_id=#{id}")
    List<OrderInfoEntity> myOrder(@Param("id") Long id);
}
